import request2 from '@/utils/request2'
const baseURL2='http://localhost:8080/ssm/user/'

export function login2(data) {
  return request2({
    method: 'post',
    url: baseURL2+'login',
    data,
  })
}

export function getInfo2(token) {/*根据token来获取用户的信息，需要建立映射关系？*/
  return request2({
    url: baseURL2+'getinfo',
    method: 'get',
    params:  {token}
  })
}


export function handleRegistration(param){/*param是个账号、密码或者邮箱*/
  return request2({
    url: baseURL2,
    method: 'post',
    params: param,
  })
}
